#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

class Solution {
private:
    static int _i;
    static int _sum;
    class Sum
    {
    public:
        Sum()
        {
            ++_i;
            _sum += _i;
        }
    };
public:
    int Sum_Solution(int n) {
        //Sum arr[n];
        while (n--)
        {
            Sum s;
        }
        return _sum;
    }
};

int Solution::_i = 0;
int Solution::_sum = 0;

int main()
{
    Solution s;
    cout << s.Sum_Solution(2) << endl;
    return 0;
}